package com.smartleanx.module.hrm.controller.admin.risk.vo;

import com.smartleanx.module.infra.api.file.dto.FileRefRespDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.util.List;

@Schema(description = "管理后台 - 风险点 Response VO")
@Data
public class RiskRespVO {

    @Schema(description = "风险点id", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long id;

    @Schema(description = "风险模块", requiredMode = Schema.RequiredMode.REQUIRED)
    private String module;

    @Schema(description = "风险模块风险员工数量合计")
    private Integer moduleRiskEmpNum;

    @Schema(description = "风险等级", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer level;

    @Schema(description = "风险点", requiredMode = Schema.RequiredMode.REQUIRED)
    private String content;

    @Schema(description = "涉及法律", requiredMode = Schema.RequiredMode.REQUIRED)
    private String lawInvolved;

    @Schema(description = "风险数量")
    private Integer riskEmpNum;

    @Schema(description = "跳转补充模块")
    private Integer redirectType;

    @Schema(description = "材料附件 stage")
    private Integer stage;

    private String stageName;

    private Integer bizType;

    private Boolean isChange = false;

    public Boolean getIsChange() {
        return isChange;
    }

    @Schema(description = "材料附件 bizFileType")
    private Integer bizFileType;

    public void setBizFileType(Integer bizFileType) {
        this.bizFileType = bizFileType;
        if(bizFileType!=null && (bizFileType == 2006 || bizFileType == 2008)){
            this.isChange = true;
        }
    }

    private String name;

    private Integer employmentForm;

    private List<FileRefRespDTO> refRespDTOList;
}